/*! Jquery style cho trang chu - Trinh Tuan Tai */
$(document).ready(function() {
    var sr_w = screen.availWidth;
    var sr_h = screen.availHeight;
    var w = sr_w;
    //var h = (w*996)/1920;
    var h = $(window).height();
    var rate = w/1920;
    var rate_100 = rate*100;
    var w1 = w*0.05;
    var w2 = w*0.37;
    var w3 = w*0.1;
    var w4 = w*0.58;
    var w5 = w*0.53;
    var lh = h*0.125;
    //alert(rate);
    $('.wrapper').css({'width':w,'height':h});
    $('.mg_left').css({'width':w1,'height':h});
    $('.home').css({'width':w2,'height':h});
    $('.home_style').css({'width':w3,'height':h});
    $('.home_contact').css({'height':lh});
    $('.home_contact_item').css({'height':lh*0.3,'padding-left':lh*0.4,'margin-top':lh*0.1});
    $('.intro').css({'height':lh*3,'margin-top':lh*0.8});
    $('.intro h3').css({'font-size':rate*52+'px'});
    $('.logo').css({'height':lh*0.8,'margin-top':lh*0.2,'background-size':'auto '+100+'%'});
    $('.logo h1').css({'padding-left':lh*1.2,'font-size':rate*50+'px'});
    $('.logo h3').css({'padding-left':lh*1.2,'font-size':rate*30+'px'});
    $('.pr').css({'height':lh*0.5,'margin-top':lh*0.2});
    $('.pr p').css({'font-size':rate*17+'px'});
    $('.search').css({'height':lh*0.25,'margin-top':lh*0.4});
    $('.search .btn').css({'height':lh*0.25,'width':lh*0.25,'background-size':'auto 70%'});
    $('.search .txt').css({'height':lh*0.25,'padding-left':lh*0.3});
    $('.coppy').css({'height':lh*0.6,'line-height':lh*0.6,'margin-top':lh*0.3});
    $('.coppy h5').css({'font-size':rate*20+'px'});
    $('.nav').css({'width':w4,'height':h});
    $('.nav_name').css({'width':w5,'height':h});
    $('.nav_icon').css({'width':w1,'height':h});
    $('.nav_name .nav_name_item a h2').css({'height':lh,'line-height':lh+'px'});
    $('.nav_icon .nav_icon_item a').css({'background-size':'auto '+rate*100*0.4+'%'});
});